/*
 * @Author: 晟松
 * @Date: 2021-12-12 22:53:48
 * @LastEditors: 晟松
 * @LastEditTime: 2022-02-04 21:20:11
 * @FilePath: \mini-vue3d:\Code\node\koa2\volunteer-service\src\main\middleware\static.js
 * @Description: koa-static中间件处理静态资源访问，不能在这里使用，会无法访问到本地数据，因为会被jwt先处理所拦截
 */
// import serve from "koa-static";
const serve = require('koa-static');
import path from 'path'
export default () => {
    let servePath = path.resolve(__dirname,'../../upload')
    console.log('servePath: ', servePath);
    return serve('src/upload');
    // return serve(servePath)
};
